package com.qaml.mes.device.dao;

import java.io.Serializable;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.UnsupportedEncodingException;

/**
 * @Description: BOM项
 * @Author: junfeic
 * @Date:   2023-10-08
 * @Version: V1.0
 */
@ApiModel(value="vet_mes_bom_item对象", description="BOM项")
@Data
@TableName("vet_mes_bom_item")
public class VetMesBomItem implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**
     * 创建人名称
     */
    @TableField("create_user_name")
    private String createUserName;

    /**
     * 更新人名称
     */
    @TableField("update_user_name")
    private String updateUserName;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**所属BOM*/
    @ApiModelProperty(value = "所属BOM")
    private String bomId;
	/**产品*/
	@Excel(name = "产品", width = 15)
    @ApiModelProperty(value = "产品")
    private String product;
	/**物料编码*/
	//@Excel(name = "物料编码", width = 15, dictTable = "vet_mes_material ", dicText = "code", dicCode = "code")
    @Excel(name = "物料编码", width = 15)
    @ApiModelProperty(value = "物料编码")
    private String item;
	/**物料名称*/
	@Excel(name = "物料名称", width = 15)
    @ApiModelProperty(value = "物料名称")
    private String name;
	/**贴片位置*/
	//@Excel(name = "贴片位置", width = 15, dictTable = "sys_category", dicText = "name", dicCode = "code")
    @ApiModelProperty(value = "贴片位置")
    @Excel(name = "贴片位置", width = 15)
    private String position;
	/**规格参数型号*/
	@Excel(name = "规格参数型号", width = 15)
    @ApiModelProperty(value = "规格参数型号")
    private String specification;
	/**f封装*/
	@Excel(name = "f封装", width = 15)
    @ApiModelProperty(value = "f封装")
    private String pack;
	/**品牌*/
	@Excel(name = "品牌", width = 15)
    @ApiModelProperty(value = "品牌")
    private String band;
	/**单位*/
	@Excel(name = "单位", width = 15)
    @ApiModelProperty(value = "单位")
    private String unit;
	/**用量*/
	@Excel(name = "用量", width = 15)
    @ApiModelProperty(value = "用量")
    private Integer num;
	/**可替代物料*/
	//@Excel(name = "可替代物料", width = 15, dictTable = "vet_mes_material", dicText = "code", dicCode = "code")
    @ApiModelProperty(value = "可替代物料")
    @Excel(name = "可替代物料", width = 15)
    private String alternative;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String memo;
}
